﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OConf.Entity
{
    public class VersionsEntity
    {
        /// <summary>
        /// ID
        /// </summary>
        [Key, Column(TypeName = "varchar(32)"), Required, MaxLength(32)]
        public string ID { get; set; }

        /// <summary>
        /// 项目ID
        /// </summary>
        [Column(TypeName = "varchar(50)"), Required, MaxLength(50)]
        public string ProjectID { get; set; }

        /// <summary>
        /// 命名空间ID
        /// </summary>
        [Column(TypeName = "varchar(50)"), Required, MaxLength(50)]
        public string NameSpaceID { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        [Column(TypeName = "varchar(50)"), Required, MaxLength(50)]
        public string VersionNo { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        [Column(TypeName = "datetime"), Required]
        public DateTime Createtime { get; set; }

    }
}
